package com.clouds.wms.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.clouds.wms.bean.Salmc;

import com.clouds.wms.dao.SalmcDao;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

@Service("salmcService")
public class SalmcServiceImpl implements SalmcService {
	@Resource(name="salmcDao")
	private SalmcDao salmcDao;

	@Override
	public PagesBean getSalmcList(String mcaa, String mcab, String mcac,String startMcad, String endMcad, int offset, int pageSize)	throws SysException {
		return salmcDao.getSalmcList(mcaa, mcab, mcac, startMcad, endMcad, offset, pageSize);
	}

	@Override
	public Salmc getSalmc(String mcaa,String mcab) throws SysException {
		return salmcDao.getSalmc(mcaa,mcab);
	}

	@Override
	public int saveSalmc(Salmc salmc) throws SysException {
		return salmcDao.savePurca(salmc);
	}
	
}
